
import store from "../store";

import { GETMOVIELIST } from "../constant/movieConst";


//定义一个reducer的初始值

const init = {
  movieList:[]
}

export default function movieListReduder(prevState = init ,action){
  const {type,data} = action
  switch (type){
    case GETMOVIELIST :
      return {...prevState,movieList:data}
  }

  return prevState
}

